<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CustomerLogin.ascx.cs"
    Inherits="Tathata.Web.Modules.Account.CustomerLoginControl" %>
<div class="hl">
    <img src="<%=Page.ResolveUrl("~/images/sp.gif")%>" /></div>
<div style="position: relative; float: left; width: 100%">
    <div class="blockHeader">
        <img src="<%=Page.ResolveUrl("~/images/VerticalLine.gif")%>" style="margin-top: 14px;" /><b><%=GetLocaleResourceString("LoginPage.Welcome")%></b><br />
    </div>
    <div class="text1">
        <table cellspacing="3" cellpadding="2" border="0" width="100%">
            <tbody>
                <tr>
                    <td width="50%" valign="top">
                        <b>
                            <%=GetLocaleResourceString("LoginPage.NewCustomer")%></b>
                    </td>
                    <td width="50%" valign="top">
                        <b>
                            <%=GetLocaleResourceString("LoginPage.ReturningCustomer")%></b>
                    </td>
                </tr>
                <tr>
                    <td height="100%" width="50%" valign="top">
                        <table cellspacing="0" cellpadding="0" class="blockBordered">
                            <tbody>
                                <tr>
                                    <td>
                                        <table height="100%" width="100%" cellspacing="4" cellpadding="2" border="0" style="height: 240px;">
                                            <tbody>
                                                <tr>
                                                    <td valign="top" style="padding-top: 17px;">
                                                        <%=GetLocaleResourceString("LoginPage.NewCustomerText")%>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <img height="5" width="100%" border="0" src="<%=Page.ResolveUrl("~/images/trans.gif")%>" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <table width="100%" cellspacing="0" cellpadding="2" border="0">
                                                            <tbody>
                                                                <tr>
                                                                    <td width="10">
                                                                        <img height="1" width="5" border="0" src="<%=Page.ResolveUrl("~/images/trans.gif")%>" />
                                                                    </td>
                                                                    <td align="right">
                                                                        <asp:Button runat="server" ID="btnRegister" Text="Register" OnClick="btnRegister_Click" />
                                                                        <br style="line-height: 6px;" />
                                                                    </td>
                                                                    <td width="10">
                                                                        <img height="1" width="5" border="0" src="<%=Page.ResolveUrl("~/images/trans.gif")%>" />
                                                                    </td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                    <td height="100%" width="50%" valign="top">
                        <table cellspacing="0" cellpadding="0" class="blockBordered">
                            <tbody>
                                <tr>
                                    <td>
                                        <table height="100%" width="100%" cellspacing="4" cellpadding="2" border="0" style="height: 240px;">
                                            <tbody>
                                                <tr>
                                                    <td>
                                                        <asp:Panel ID="pnlLogin" runat="server" Style="width: 100%" DefaultButton="LoginForm$LoginButton">
                                                            <asp:Login ID="LoginForm" TitleText="" OnLoggedIn="OnLoggedIn" runat="server" CreateUserUrl="~/Register.aspx"
                                                                DestinationPageUrl="~/Default.aspx" RememberMeSet="True">
                                                                <LayoutTemplate>
                                                                    <table height="100%" width="100%" cellspacing="4" cellpadding="2" border="0" style="height: 220px;">
                                                                        <tbody>
                                                                            <tr>
                                                                                <td>
                                                                                    <b>
                                                                                        <asp:Literal runat="server" ID="lEMailAddress" Text="E-Mail Address" /></b>
                                                                                    <br style="line-height: 6px;" />
                                                                                    <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                                                                                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                                                                        ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="ctl00$LoginForm">*</asp:RequiredFieldValidator>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <b>
                                                                                        <asp:Literal runat="server" ID="lPassword" Text="Password" />:</b>
                                                                                    <br style="line-height: 6px;" />
                                                                                    <asp:TextBox ID="Password" TextMode="Password" runat="server" MaxLength="50"></asp:TextBox>
                                                                                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                                                                        ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="ctl00$LoginForm">*</asp:RequiredFieldValidator>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td colspan="2">
                                                                                    <asp:CheckBox ID="RememberMe" runat="server" Text="Remember me"></asp:CheckBox>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td colspan="2">
                                                                                    <img height="5" width="100%" border="0" src="images/trans.gif" />
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td colspan="2" class="messageError">
                                                                                    <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td colspan="2" class="messageError">
                                                                                    <a href="PasswordRecovery.aspx" class="link">Forgot password?</a>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td colspan="2">
                                                                                    <table width="100%" cellspacing="0" cellpadding="2" border="0">
                                                                                        <tbody>
                                                                                            <tr>
                                                                                                <td>
                                                                                                    <img height="1" width="5" border="0" src="images/trans.gif" />
                                                                                                </td>
                                                                                                <td align="right">
                                                                                                    <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log in" ValidationGroup="ctl00$LoginForm" /><br
                                                                                                        style="line-height: 1px;" />
                                                                                                    <br style="line-height: 5px;" />
                                                                                                </td>
                                                                                                <td>
                                                                                                    <img height="1" width="5" border="0" src="images/trans.gif" />
                                                                                                </td>
                                                                                            </tr>
                                                                                        </tbody>
                                                                                    </table>
                                                                                </td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </LayoutTemplate>
                                                            </asp:Login>
                                                        </asp:Panel>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</div>
